package com.csj.lc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.List;

@Alias("user")
@ToString
public class User implements Serializable {

    private int userId;
    private String userName;
    private String password;
    private String nickname;
    private String remarks ;
    private Role role ;
    private Company company;

//    private List<Operation> ops ;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

//    public List<Operation> getOps() {
//        return ops;
//    }

//    public void setOps(List<Operation> ops) {
//        this.ops = ops;
//    }

//    @Override
//    public String toString() {
//        return "User{" +
//                "userId=" + userId +
//                ", userName='" + userName + '\'' +
//                ", password='" + password + '\'' +
//                ", nickname='" + nickname + '\'' +
//                ", remarks='" + remarks + '\'' +
//                '}';
//    }


}
